// import {routes} from "@/router/homes.js";
/**
 * 菜单设置
 */

const state = () => ({
	isTop: true //是否固定顶部
});

const mutations = {
	SET_IS_TOP(state, isTop = true) {
		state.isTop = isTop;
	}
};

const actions = {
	setIsTop({commit}, isTop = true) {
		commit('SET_IS_TOP', isTop);
	}
};

export default {
	namespaced: true,
    state,
	mutations,
	actions
}